<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\validate;

/**
 * 请销假验证器
 */
class Hols extends AdminBase
{
    
    // 验证规则
    protected $rule =   [
        
        'name'                      => 'require',
        'class'                     => 'require',
        'phone'                     => 'require',
        'dorm'                      => 'require',
        'leaveday'                  => 'require',
        'arriveday'                 => 'require',

    ];

    // 验证提示
    protected $message  =   [
        
        'name.require'                    => '姓名不能为空',
        'class.require'                   => '班级不能为空',
        'phone.require'                   => '联系方式不能为空',
        'dorm.require'                    => '宿舍不能为空',
        'leaveday.require'                => '请假日期不能为空',
        'arriveday.require'               => '销假日期不能为空',
    ];

    // 应用场景
    protected $scene = [
        
        'edit' =>  ['name','class','phone','dorm','leaveday','arriveday'],
    ];
    
}
